package com.baidu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baidu.service.HelloService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author WYC
 * @version v1.0
 * @date 2019/11/16 10:30
 **/

@Service(timeout = 800)
@Transactional
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        System.out.println("20880");
        try {
            Thread.sleep(1200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello" + name;
    }
}